/*
 * @Description:
 * @version:
 * @Author: 周子尧
 * @Date: 2022-03-29 14:44:24
 * @LastEditors: 周子尧
 * @LastEditTime: 2022-04-11 10:46:31
 */

export function param(data) {
  let url = ''
  for (var k in data) {
    const value = data[k] !== undefined ? data[k] : ''
    url += '&' + k + '=' + encodeURIComponent(value)
  }
  return url ? url.substring(1) : ''
}
